<?php
/**
 * Created by PhpStorm.
 * User: xuewl
 * Date: 2018/1/3
 * Time: 19:09
 */

namespace app\product\service;
use app\common\library\Service;

class ProductOrderComplain extends Service
{
    use \app\common\library\traits\Model;
    protected $model;

    public function _initialize() {
        parent::_initialize();
        $this->model = model('product/product_order_complain');
    }

    public function doresult($id) {
        $result = $this->save([
            'result' => 1,
        ], ['id' => $id]);
        if(!$result) {
            $this->error = $this->getError();
            return false;
        }
        return $result;
    }

}